Game.FormRequest.Login = {
    handler: "j_security_check",
    request: {
        "j_username" :"alexog",
        "j_password" :"tolstyak"
    },
    create: function() {
        var request = Object.clone(this);
        request.headers = {};
        return request;
    }
}    

onLogin = function() {
    alert("Successful logon");
}

onSubmit = function() {
    var req = new Game.FormRequest(Game.FormRequest.Login.create(),Game.HTMLResponse);
    console.log(req);
    req.send();
}